<div class="col-sm-12 mt20" >
<div class="panel panel-default">
<div class="panel-body">
<div class="col-sm-12">

    <div class="row ">
        <div class="col-sm-2">
            <input type="text" class="form-control"  ng-model="order_code" placeholder="订单编号"> 
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="order_name" placeholder="订单名称">
        </div>
        <div class="col-sm-2">
            <ui-select ng-model="d.pay_state" theme="bootstrap" >
                <ui-select-match placeholder="请选择支付状态">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.value as item in psarr | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="product_id" placeholder="产品编号"> 
        </div>
        <div class="col-sm-2">
            <ui-select ng-model="d.order_state" theme="bootstrap" >
                <ui-select-match placeholder="请选择订单状态">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.value as item in osarr | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" ng-model="supplier_product_name" placeholder="供应商名称"> 
        </div>
    </div>

    <div class="row mt10">
        <div class="col-sm-2">
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" is-open="date.opened" readonly ng-click="dateOpen(date)" placeholder="出发团期（起）"/>
        </div>
        <div class="col-sm-2">
            <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date1.lable" is-open="date1.opened" readonly ng-click="dateOpen1(date1)" placeholder="出发团期（止）"/>
        </div>
        <div class="col-sm-2">
            <ui-select ng-model="d.cancel_state" theme="bootstrap" >
                <ui-select-match placeholder="请选择取消状态">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.value as item in csarr | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <div class="col-sm-2">
            <ui-select ng-model="d.upplier_check_state" theme="bootstrap" >
                <ui-select-match placeholder="请选择审核状态">
                    {{$select.selected.name}}
                </ui-select-match>
                <ui-select-choices repeat="item.value as item in ucsarr | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>

        <div class="col-sm-2 col-sm-offset-2">
            <button class="btn btn-block btn-info" ng-click="search()">搜索</button> 
        </div>

    </div>

</div>
</div>
</div>
<!-- searchArea -->

<div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered" style="display: table; width: 100%;table-layout:fixed;">
            <thead>
                <tr>
                     <th style="width: 15%;text-align:center;padding-left:0px;padding-right:0px;">订单名/订单编号</th>
                    <th style="width: 18%;text-align:center;padding-left:0px;padding-right:0px;">供应商产品名称/产品编号</th>
                    <th style="width: 6%;text-align:center;padding-left:0px;padding-right:0px;">供应商</th>
                    <th style="width: 10%;text-align:center;padding-left:0px;padding-right:0px;">团期(出/回)</th>
                    <th style="width: 5%;text-align:center;padding-left:0px;padding-right:0px;">人数</th>
                    <th style="width: 7%;text-align:center;padding-left:0px;padding-right:0px;">总金额</th>
                    <th style="width: 11%;text-align:center;padding-left:0px;padding-right:0px;">联系人/联系电话</th>
                    <th style="width: 8%;text-align:center;padding-left:0px;padding-right:0px;">订单状态</th>
                    <th style="width: 7%;text-align:center;padding-left:0px;padding-right:0px;">支付状态</th>
                    <th style="width: 7%;text-align:center;padding-left:0px;padding-right:0px;">审核状态</th>
                    <th style="width: 7%;text-align:center;padding-left:0px;padding-right:0px;">产品状态</th>
                    <th style="width: 6%;text-align:center;padding-left:0px;padding-right:0px;">操作</th>
                </tr>
            </thead>
            <tbody>
               <tr ng-repeat="info in a"> 
                    <td  style="width: 15% ;text-align:center;vertical-align:middle;padding-left:0px;padding-right:0px;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.order_name}}">{{info.order_name}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.order_code}}">{{info.order_code}}</div></td>
                    <td  style="width: 16% ;text-align:center;vertical-align:middle;padding-left:0px;padding-right:0px;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.supplier_product_name}}">{{info.supplier_product_name}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.product_id}}">{{info.product_id}}</div></td>
                    <td  style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.create_by}}</td>
                    <td  style="width: 10% ;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.tour_date}}">{{info.tour_date}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.back_tour_date}}">{{info.back_tour_date}}</div></td>
                    <td  style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.people_num}}</td>
                    <td  style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.money}}</td>
                    <td  style="width: 11% ;text-align:center;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.name}}">{{info.name}}</div><div class="ellipsis" style="max-width:100%;" title="{{info.mobile}}">{{info.mobile}}</div></td>
                    <td  style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.order_state_name}}</td>
                    <td  style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.pay_state_name}}</td>
                    <td  style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.upplier_check_state_name}}</td>
                    <td  style="width: 7%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;">{{info.cancel_state==1?'取消':'正常'}}</td>
                    <td  style="width: 6%;text-align:center;vertical-align:middle;overflow-x:hidden;overflow-y:hidden;vertical-align:middle">
                        <div class="pull-left;align:center" >
                                <button type="button" class="btn btn-info btn-xs" ng-click="toinfo($index)">详情</button>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="text-right">
             <pagination 
                total-items="totalItems" 
                ng-model="currentPage" 
                ng-change="pageChanged()"
                previous-text="上一页" 
                next-text="下一页" 
                first-text="首页" 
                last-text="尾页" 
                max-size="5" 
                boundary-links="true"
                rotate="false"        
                items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
</div>

</div>